﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PWMIS.DataMap.Entity;
namespace FTchina.Logic
{
    /// <summary>
    ///PageLogic 的摘要说明
    /// </summary>
    public class PageLogic
    {
        public PageLogic()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="q"></param>
        /// <param name="count"></param>
        public static OQL MakeSubPage(OQL q, FineUI.Grid Grid1, int count)
        {
            if (count > Grid1.PageSize)
            {//需要分页
                q.Limit(   Grid1.PageSize,   Grid1.PageIndex + 1);//分页 
                return q;
            }
            else
            {
                return q;
            }
        }
    }
}